#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>

int main(void) {
	int i = 0, j = 0, n = 0;
	char ch[20] = { '\0' }, s[20] = { '\0' };
	//gets(ch);//?
	scanf("%s", ch);
	for (; i < 20; i++) {
		if (ch[i] >= 'a' && ch[i] <= 'z' || ch[i] >= 'A' && ch[i] <= 'Z') {
			n++;
		}
		else {
			s[j] = ch[i];
			j++;
		}
	}
	printf("%d\n", n);
	s[j] = '\0';
	puts(s);
	return 0;
}
